package com.yjd.bi.gift.service;

import com.yjd.bi.report.enums.TimeType;
import com.yjd.bi.report.model.EChartsModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.gift.model.GiftReceiveModel;

/**
 * <b>description</b>：微信分享红包业务接口<br>
 * <b>time</b>：2016-12-16 13:27:40 <br>
 * <b>author</b>：  ready likun_557@163.com
 */
public interface IGiftReceiveService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public GiftReceiveModel insert(GiftReceiveModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(GiftReceiveModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param gift_receive_id
	 * @return
	 * @throws Exception
	 */
	public int delete(long gift_receive_id) throws Exception;

	/**
	 * 统计
	 *
	 * @param timeType
	 * @param timeFrom
	 * @param field
	 * @return
	 * @throws Exception
	 *             EChartsModel
	 */
	public EChartsModel getDates(TimeType timeType, Long timeFrom, String field)
			throws Exception;

}
